package com.xtm.exercise.controller;

import com.xtm.common.controller.ResultController;
import com.xtm.common.model.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;

@Slf4j
@ResultController
@AllArgsConstructor
@Api(tags = "演示示例",value = "演示 Controller 的使用")
public class TestController {

    @GetMapping(value = "/demos")
    @ApiOperation(value = "请求处理完成")
    public Result<?> test () {
        log.info("消息处理完成");
        return Result.ok("请求处理完成");
    }
}
